package com.fjl.jni;

import java.io.Serializable;

public class JNIHello implements Serializable {

	private static final long serialVersionUID = 2683028985839110062L;

	public native void sayHi();

	static {
		System.loadLibrary("jnitest32");
	}

	public void sayHi(String str) {
		System.out.println("javaSay, " + str + " !");
	}

	public static void main(String[] args) {
		System.loadLibrary("HelloJni");  
		JNIHello jniHello = new JNIHello();
		jniHello.sayHi("fang");
		jniHello.sayHi();
	}
}
